<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站分类目录管理系统 - 主维网</title>
<link href="../Public/global.css" rel="stylesheet" type="text/css" />
<link href="../Public/iframe.css" rel="stylesheet" type="text/css" />
<link href="../Public/treeview.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../Public/jquery.min.js"></script>
<script type="text/javascript" src="../Public/jquery.treeview.js"></script>
<script type="text/javascript">
$(document).ready(function(){  
    /*$("#main_frame").load(function(){
        $(this).height($(this).height() - $("#main_frame").offset().top - 10);    
    });
	*/
	$("#menu").treeview();
	
	var win_height = $(window).height() - $("#main_frame").offset().top - 5;
	$("#main_frame").height(win_height);
	$("#sidebar").css("height", win_height);
});
</script>
</head>

<body>
<div id="wrapper">
  <div id="header">
    <h1>主维网站分类目录管理系统</h1>
    <div id="link"><a href="/" target="_blank">预览网站</a> | <a href="{:U('main')}" target="main">管理首页</a> | <a href="{:U('/common/delCache')}" target="main">清空缓存</a> | <a href="{:U('/Editpwd')}" target="main">修改密码</a> | <a href="{:U('/Login/logout')}" onclick="return confirm('确认退出吗？');">退出</a></div>
  </div>
  <div id="mainer">
    <div id="mainer-left">
      <div id="sidebar">
        <ul id="menu" class="filetree">
          <volist name="accessTree" id="ato">
            <li <gt name="key" value="0">class="closed"</gt>> <span class="folder">{$ato['level']['menu_name']}</span>
              <ul>
                <volist name="ato['tree']" id="atot">
                  <li><a href="{:U('/'.$atot['module'].'/'.$atot['action'])}" target="main"><span class="file">{$atot['menu_name']}</span></a></li>
                </volist>
              </ul>
            </li>
          </volist>
        </ul>
      </div>
    </div>
    <div id="mainer-right">
      <div id="content">
        <iframe id="main_frame" name="main" frameborder="0" src="{:U('main')}"></iframe>
      </div>
    </div>
  </div>
</div>
</body>
</html>